package org.mirim.nmt;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class StartGame2 extends Activity implements OnClickListener{
	private static final int CALL_REQUEST=123;
	static int lev222=0; 
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.startgame2);
	    
	        ImageButton lev1=(ImageButton)findViewById(R.id.btn_lev2_1);
	        lev1.setOnClickListener(this); //lev1
	     
	        ImageButton lev2=(ImageButton)findViewById(R.id.btn_lev2_2);
	        lev2.setOnClickListener(this); //lev2  
	        
	        ImageButton lev3=(ImageButton)findViewById(R.id.btn_lev2_3);
	        lev3.setOnClickListener(this); //lev3  
	        
	        ImageButton lev4=(ImageButton)findViewById(R.id.btn_lev2_4);
	        lev4.setOnClickListener(this); //lev4  
	        
	        ImageButton lev5=(ImageButton)findViewById(R.id.btn_lev2_5);
	        lev5.setOnClickListener(this); //lev5  
	        
	        ImageButton lev6=(ImageButton)findViewById(R.id.btn_lev2_6);
	        lev6.setOnClickListener(this); //lev6  
	        
	        ImageButton lev7=(ImageButton)findViewById(R.id.btn_lev2_7);
	        lev7.setOnClickListener(this); //lev6  
	        
	        ImageButton lev8=(ImageButton)findViewById(R.id.btn_lev2_8);
	        lev8.setOnClickListener(this); //lev6  
	        
	        ImageButton lev9=(ImageButton)findViewById(R.id.btn_lev2_9);
	        lev9.setOnClickListener(this); //lev6  
	        
	        ImageButton lev10=(ImageButton)findViewById(R.id.btn_lev2_10);
	        lev10.setOnClickListener(this); //lev6  
	        
	        ImageButton lev11=(ImageButton)findViewById(R.id.btn_lev2_11);
	        lev11.setOnClickListener(this); //lev6  
	        
	        ImageButton lev12=(ImageButton)findViewById(R.id.btn_lev2_12);
	        lev12.setOnClickListener(this); //lev2  
	        
	        ImageButton lev13=(ImageButton)findViewById(R.id.btn_lev2_13);
	        lev13.setOnClickListener(this); //lev3  
	        
	        ImageButton lev14=(ImageButton)findViewById(R.id.btn_lev2_14);
	        lev14.setOnClickListener(this); //lev4  
	        
	        ImageButton lev15=(ImageButton)findViewById(R.id.btn_lev2_15);
	        lev15.setOnClickListener(this); //lev5  
	        
	        ImageButton lev16=(ImageButton)findViewById(R.id.btn_lev2_16);
	        lev16.setOnClickListener(this); //lev6  
	        
	        ImageButton lev17=(ImageButton)findViewById(R.id.btn_lev2_17);
	        lev17.setOnClickListener(this); //lev6  
	        
	        ImageButton lev18=(ImageButton)findViewById(R.id.btn_lev2_18);
	        lev18.setOnClickListener(this); //lev6       
 }
	public void onClick(View v) {
		switch (v.getId()) {
		
		case R.id.btn_lev2_1:{ lev222=1;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("1", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_2:{ lev222=2;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("2", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_3:{ lev222=3;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("3", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_4:{ lev222=4;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("4", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_5:{ lev222=5;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("5", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_6:{ lev222=6;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("6", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_7:{ lev222=7;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("7", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_8:{ lev222=8;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("8", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_9:{ lev222=9;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("9", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_10:{ lev222=10;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("10", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_11:{ lev222=11;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("11", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_12:{ lev222=12;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("12", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_13:{ lev222=13;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("13", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_14:{ lev222=14;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("14", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_15:{ lev222=15;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("15", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_16:{ lev222=16;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("16", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_17:{ lev222=17;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("17", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev2_18:{ lev222=18;	Intent intent=(new Intent(StartGame2.this,Level2.class));
								intent.putExtra("18", lev222);	startActivityForResult(intent, CALL_REQUEST); break;}	

		
		}
}}